package com.atguigu.dao;

import com.atguigu.base.BaseDao;
import com.atguigu.entity.Dict;

import java.util.List;

public interface DictDao extends BaseDao<Dict> {

    //1、根据父id获取下级列表：findListByParentId
    List<Dict> findListByParentId(Long parentId);


    //2、通过父id获取子节点的数量判断是否是父节点：countIsParent
    Integer countIsParent(Long id);

    Dict getListByDictCode(String dictCode);

    String getNameById(Long id);
}
